<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: gbmath::line2d Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gbmath
   &#160;<span id="projectnumber">v0.051</span>
   </div>
   <div id="projectbrief">c++ math library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegbmath.html">gbmath</a></li><li class="navelem"><a class="el" href="classgbmath_1_1line2d.html">line2d</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classgbmath_1_1line2d-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gbmath::line2d Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Line in 2d by two points.  
 <a href="classgbmath_1_1line2d.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="line2d_8h_source.html">line2d.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a94f550246f89a7759c387a3327b00f2d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a94f550246f89a7759c387a3327b00f2d">line2d</a> ()</td></tr>
<tr class="separator:a94f550246f89a7759c387a3327b00f2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2269c2d24eb9c595e36b4f00470d5eee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a2269c2d24eb9c595e36b4f00470d5eee">line2d</a> (const <a class="el" href="classgbmath_1_1line2d.html">line2d</a> &amp;a)</td></tr>
<tr class="separator:a2269c2d24eb9c595e36b4f00470d5eee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05353c700cffe8499492097943b5805c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a05353c700cffe8499492097943b5805c">line2d</a> (const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;_src, const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;_dest)</td></tr>
<tr class="separator:a05353c700cffe8499492097943b5805c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac98f6441aeb863faca901889c1d682a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgbmath_1_1normal2.html">normal2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#ac98f6441aeb863faca901889c1d682a1">direction</a> () const </td></tr>
<tr class="separator:ac98f6441aeb863faca901889c1d682a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4035e5ed49a9af2cc2b91b547ed87926"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a4035e5ed49a9af2cc2b91b547ed87926">set</a> (const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;_src, <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;_dest)</td></tr>
<tr class="separator:a4035e5ed49a9af2cc2b91b547ed87926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6904fd001252f6c37b47fd45faeefbd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec2.html">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#ab6904fd001252f6c37b47fd45faeefbd">project_point</a> (const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;pnt)</td></tr>
<tr class="separator:ab6904fd001252f6c37b47fd45faeefbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55d38a7dd4a9f579087d668d12b54abf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a55d38a7dd4a9f579087d668d12b54abf">IsIntersectCircle</a> (float *ps0, float *ps1, const <a class="el" href="classgbmath_1_1_circle.html">Circle</a> &amp;cir)</td></tr>
<tr class="separator:a55d38a7dd4a9f579087d668d12b54abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0690dce5a160bb5b48cd163b8cd2360"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#ae0690dce5a160bb5b48cd163b8cd2360">IsIntersectCircleContactPoints</a> (<a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;pContact1, <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;pContact2, const <a class="el" href="classgbmath_1_1_circle.html">Circle</a> &amp;cir)</td></tr>
<tr class="separator:ae0690dce5a160bb5b48cd163b8cd2360"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a88213f34941eec77ffd84cbe682ca600"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec2.html">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#a88213f34941eec77ffd84cbe682ca600">src</a></td></tr>
<tr class="separator:a88213f34941eec77ffd84cbe682ca600"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8f71a79167222b38daa1b35c3fefb68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec2.html">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1line2d.html#ac8f71a79167222b38daa1b35c3fefb68">dest</a></td></tr>
<tr class="separator:ac8f71a79167222b38daa1b35c3fefb68"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Line in 2d by two points. </p>

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00020">20</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a94f550246f89a7759c387a3327b00f2d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::line2d::line2d </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00027">27</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2269c2d24eb9c595e36b4f00470d5eee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::line2d::line2d </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1line2d.html">line2d</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00029">29</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<a class="anchor" id="a05353c700cffe8499492097943b5805c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::line2d::line2d </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>_src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>_dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00034">34</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac98f6441aeb863faca901889c1d682a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgbmath_1_1normal2.html">normal2</a> gbmath::line2d::direction </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00040">40</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<a class="anchor" id="a55d38a7dd4a9f579087d668d12b54abf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gbmath::line2d::IsIntersectCircle </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>ps0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>ps1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1_circle.html">Circle</a> &amp;&#160;</td>
          <td class="paramname"><em>cir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8cpp_source.html#l00082">82</a> of file <a class="el" href="line2d_8cpp_source.html">line2d.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae0690dce5a160bb5b48cd163b8cd2360"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gbmath::line2d::IsIntersectCircleContactPoints </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>pContact1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>pContact2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1_circle.html">Circle</a> &amp;&#160;</td>
          <td class="paramname"><em>cir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8cpp_source.html#l00111">111</a> of file <a class="el" href="line2d_8cpp_source.html">line2d.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab6904fd001252f6c37b47fd45faeefbd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> gbmath::line2d::project_point </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>pnt</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8cpp_source.html#l00012">12</a> of file <a class="el" href="line2d_8cpp_source.html">line2d.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4035e5ed49a9af2cc2b91b547ed87926"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gbmath::line2d::set </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>_src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> &amp;&#160;</td>
          <td class="paramname"><em>_dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00047">47</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ac8f71a79167222b38daa1b35c3fefb68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> gbmath::line2d::dest</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00025">25</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<a class="anchor" id="a88213f34941eec77ffd84cbe682ca600"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec2.html">vec2</a> gbmath::line2d::src</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="line2d_8h_source.html#l00024">24</a> of file <a class="el" href="line2d_8h_source.html">line2d.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="line2d_8h_source.html">line2d.h</a></li>
<li><a class="el" href="line2d_8cpp_source.html">line2d.cpp</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<!--address class="footer"-->
<!--small-->
<br>
&nbsp;&nbsp;&nbsp;<b>Project page:</b> &nbsp;<a target="_blank" href="https://code.google.com/p/gbmath/">https://code.google.com/p/gbmath/</a>&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;<b>Doc page:</b> &nbsp;<a target="_blank" href="http://www.it.ks777.ru/docs">http://www.it.ks777.ru/docs</a>&nbsp;&nbsp;<br>
<br>
Generated on Sat Jul 27 2013 08:09:04 for gbmath by &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
